package com.ftqh.tutorial.controller;

import lombok.extern.java.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/6/9.
 */
@RestController
@Log
public class TraceController {

    @GetMapping("/trace-2")
    public String trace(HttpServletRequest request){
        log.info("##### Call trace-2,TraceId="+
                request.getHeader("X-B3-TraceId")+", SpanId="+
                request.getHeader("X-B3-SpanId")+" #####");
        return "Trace";
    }
}
